<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <script type="text/javascript" >
    	function reImg(){
    		var img = document.getElementById("Img");
    		var i = Math.random();
    		img.src="imgs.jsp?id="+i;
    	}
    </script>
    <!--
     <script type="text/javascript">
     $(document).ready(function(){
   	  $("checkcodeId").blur(function(){
   	  	var $checkcodeId = $("checkcodeId").val();
   	  	//校验：文本框中输入的值发送到服务端
   	  	//服务端：
   	  	$.post(
   	  		"checkCode",
   	  		"checkcode="+$checkcode,
   	  		function(result){//图片地址
   	  			
   	  		}
   	  	
   	  	);
   	  });
     });
     
    </script>
    -->
    <title>验证码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <div align = "center">
登录界面<br><br/>
  <form action="NbaServlet?act=1" method="post">
  用户名：<input type="text" name="username"value="${username}"/><br/><br/>
  密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password"value="${password}"/><br/><br/>
  验证码
  	<input type="text" name="checkcode"size="4">
  	<!-- 验证码 -->
   <img src="imgs.jsp" id="Img" onclick="reImg();"/><br/>
   <br/>
  <input type="submit"value="登录"/><br/>
  <a href="NbaServlet?act=2&NPlayer=">删除球员</a>

   </form>
  </body>
</html>
